package com.yuhs.zixing.pay.web.controller;

import com.alibaba.fastjson.JSON;
import com.yuhs.zixing.pay.dal.merchant.dto.PayMerchantInfoDTO;
import com.yuhs.zixing.pay.manager.merchant.MerchantManager;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName TestController
 * @Description TODO
 * @Author yuhs
 * @CreateDate 2020/11/20
 **/
@Slf4j
@RestController
public class TestController {

    @Resource
    MerchantManager merchantManager;

    @RequestMapping("/test")
    public void test() {
        log.info("测试");
        PayMerchantInfoDTO payMerchantInfoByMerchantNo = merchantManager.getPayMerchantInfoByMerchantNo("1219851901");
        log.info("商户信息：{}", JSON.toJSONString(payMerchantInfoByMerchantNo));

    }
}
